	<div class="Block">
	
    <p class="Title">Моя страница</p>
    <br />
    <p><span class="Bold"><?php echo $update->user_info->name; ?> </span><span class="Green">[<?php echo $update->username; ?>]</span></p>
    </div>
    <br />
    <hr class="Line" />
    <div class="Block">
		<div id="Personal">
        <div style="width:60px; height:60px; display:block; overflow:hidden; background:url(/images/NoAvatar.png) no-repeat scroll 0 0; float:left;">
        	<?php echo '<img src="/images/users/avatars/'.$update->user_info->avatar.'" width="60" height="60" class="Avatara" alt="" style:z-index:0; />';?>
            <div style="width:60px; height:60px; z-index:12; position:absolute; top:0; left:0; background:url(/images/AvatarMask.png) no-repeat scroll 0 0;"></div>
</div>
        <div id="PersonalStat">

        	<table width="100%" border="0">
              <tr>
                <td>Рейтинг: </td>
                <td><img src="/images/rate.png" alt="" width="112" height="9" /></td>
                <td class="Red"><?php
                if($update->ratio!=0)
                {
                    echo 1000/$info->ratio;
                }
                 else
                 {

                 echo '0';

                }
                            ?>%</td>
              </tr>
              <tr>
                <td><a href="#">Отзывы:</a> </td>
                <td class="Red">2</td>
                <td>&nbsp;</td>
              </tr>
            </table>
            <div class="Last"></div>
        </div>

             <table>
              <tr>
                <td>Заказаных работ: <?php echo $update->user_info->zak;?></td>
                <td>Выполненых работ: <?php echo $update->user_info->vip;?></td>
                <td align="right"></td>
              </tr>
              <tr>
                <td>Купленых работ: <?php echo $update->user_info->by;?></td>
                <td >Проданых работ: <?php echo $update->user_info->sell;?></td>
                <td>&nbsp;</td>
              </tr>
            </table>

        </div>
	</div>
    <hr class="Line" />

    <div class="Block">
	<form action="/user/update" id="test" name="test" method="post" enctype="multipart/form-data">
    <table width="100%" border="0" id="UserForm">
      <tr> 
        <td>&nbsp;</td>
        <td>Основные настройки</td>
        <td>Мой юзерпик</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Имя</td>
        <td><?php echo'<input type="text" name="name" class="UserText" value="'.$update->user_info->name.'" />'?></td>
        <td><?php echo'<input type="file" name="user_info[avatar]" style="" value="'.$update->user_info->avatar.' " id="#File1"/>'?></td>
        <td>
        	<p>
            	Условия загрузки: Размер
                <br />100х100 пикселей, gif, jpeg, png
            </p>
        </td>
      </tr>
      <tr>
        <td>Фамилия</td>
        <td><?php echo'<input type="text" name="lastname" class="UserText" value="'.$update->user_info->famely.'" />'?></td>
        <td><?php //echo'<img src="/images/users/avatars/'.$update->user_info->avatar.'" width="100" height="100" alt="" border="none" style="margin-right:12px;" />'?></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>Электронная почта</td>
        <td><?php echo'<input type="text" name="email" class="UserText" value="'.$update->email.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>ICQ</td>
        <td><?php echo'<input type="text" name="icq" class="UserText" value="'.$update->user_info->icq.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <td>Skype</td>
        <td><?php echo'<input type="text" name="skype" class="UserText" value="'.$update->user_info->skype.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <td>Jabber</td>
        <td><?php echo'<input type="text" name="jabber" class="UserText" value="'.$update->user_info->jabber.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <td>Phone</td>
        <td><?php echo'<input type="text" name="phone" class="UserText" value="'.$update->user_info->phone.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  <tr>
        <td>Site</td>
        <td><?php echo'<input type="text" name="site" class="UserText" value="'.$update->user_info->site.'" />'?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
		<?php echo '<input type="hidden" name="id" value="'.$update->user_info->id_user_info.'" />'?>
        <td><input type="submit" class="SaveButton" value=" " /></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
	</form>
    </div>